﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PIPDiliverInfo_OnlyAmount.aspx.cs" Inherits="Hisun.View.PIPDeliverInfo.PIPDiliverInfo_OnlyAmount" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <script language="javascript" for="document" event="onkeydown">

  if(event.keyCode==13 && event.srcElement.type!="button" && event.srcElement.type!="submit" && event.srcElement.type!="reset" && event.srcElement.type!="textarea" && event.srcElement.type!="")
{
      event.keyCode=9;
   }

</script> 
    <style type="text/css">
        .style1
        {
            height: 15px;
        }
        .style2
        {
            height: 12px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">中间体转出路径</div></div>
    <div class ="CommonPage_Body">

    
        <table style="width:100%;">
            <tr>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="选择成本账户：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_Product" runat="server" Height="17px" 
                        Width="223px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                        Text="查询" />
                </td>
                <td class="style2">
                    </td>
                <td class="style2">
                    </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_Main" runat="server" Visible="False">
                        <asp:GridView ID="GridView_DiliverInfo" runat="server" 
                        AutoGenerateColumns="False" DataKeyNames="ID" SkinID="GridView">
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                                <asp:BoundField DataField="作业中心" HeaderText="作业中心" />
                                <asp:BoundField DataField="中间体" HeaderText="中间体" />
                                <asp:TemplateField HeaderText="转出数量">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("转出数量") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_Amount" runat="server" 
                                        Text='<%# string.Format("{0:F4}",Eval("转出数量")) %>'></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                        ControlToValidate="TextBox_Amount" ErrorMessage="*" Type="Double" 
                                        ValidationGroup="Group"></asp:CompareValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="目标作业中心" HeaderText="目标作业中心" />
                                <asp:BoundField DataField="目标中间体" HeaderText="目标中间体" />
                            </Columns>
                        </asp:GridView>
                        <asp:Button SkinID = "Button" ID="Button_Save" runat="server" onclick="Button_Save_Click" 
                            Text="保存" ValidationGroup="Group" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:HiddenField ID="HiddenField_ProductID" runat="server" />
                    <asp:HiddenField ID="HiddenField_CenterID" runat="server" />
                </td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<%=alert %>